package com.leon.android.component_home.action

import com.apkfuns.logutils.LogUtils
import com.billy.cc.core.component.CC
import com.billy.cc.core.component.CCResult
import com.leon.android.component_home.HomeFragment
import com.leon.android.component_home.IHomeActionProcessor

/**
 * @time:2019/12/16 11:32
 * @author:Leon
 * @description:
 */
class ObtainHomeFragmentAction:IHomeActionProcessor {
    override val actionName: String
        get() = "fragment"

    override fun onActionCall(cc: CC): Boolean {
        CC.sendCCResult(cc.callId, CCResult.success("fragment", HomeFragment()))
        LogUtils.d("obtain home fragment")
        return false
    }
}